package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.GroupPullConfigDevice;
import com.xjscrm.common.entity.GroupPullJobDevice;
import com.xjscrm.common.entity.GroupPullTaskDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GroupPullJobDeviceMapper {
    int deleteById(@Param("id") Long id);

    int insert(GroupPullJobDevice record);

    int insertSelective(GroupPullJobDevice record);

    GroupPullJobDevice selectById(@Param("id") Long id);

    GroupPullJobDevice selectByJobIdAndDeviceUniqueId(@Param("jobId") Long jobId, @Param("deviceUniqueId") Long deviceUniqueId);

    List<GroupPullJobDevice> selectByJobId(@Param("jobId") Long jobId, @Param("merId") Long merId);

    int updateByIdSelective(GroupPullJobDevice record);

    int updateById(GroupPullJobDevice record);

    int updateDelaySnapshotById(GroupPullJobDevice record);
}